﻿using System;

namespace Encloser.Json
{
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public sealed class JsonMember : Attribute
    {
        private readonly string alias;

        public string Alias { get => alias; }

        public JsonMember(string alias)
        {
            this.alias = alias;
        }
    }
}
